package city.spring.modules.work.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;

/**
 * 实体类：排班方案-关联用户
 *
 * @author 侯坤林
 * @date 2020-06-04 16:25:19
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName("work_plan_user_ext")
public class WorkPlanUserExtEntity implements Serializable {

    /**
     * 主键ID
     */
    @TableId(type = IdType.AUTO)
    private Long id;

    /**
     * 上班计划ID
     */
    private String workPlanId;

    /**
     * 用户ID
     */
    private String userId;

    /**
     * 该人员上班次数，为-1时自动根据每日班次数和人数计算
     */
    private Integer workNumber;

}